/**
 * 佣金管理
 */
define(function(require, exports, module) {
    var $ = require("jquery");
    var angular = require("angular");
    require('authorize');
    require("permission");
    require("angular-route");
    require("angular-ui");
    require("angular-interceptor");
    var util = require("util");
    require("./service");
    require('global');

    var app = angular.module('app', ['ngRoute', 'ngUI', 'ngInterceptor', 'panoramaModule']);

    function MainController($scope, $q, $location, panorama) {
        $scope.panorama = panorama;

        setTimeout(function() {
            panorama.query();
        }, 0);
    }

    app.controller('MainController', ['$scope', '$q', '$location', 'panorama', MainController]);

    angular.bootstrap(document.getElementById('ng-app'), ['app']);
});